/**
 * User: gongming
 * Date: 7/11/14
 * Time: 12:34 AM
 * Email:gongmingqm10@foxmail.com
 */
public class PrimeFactor {
    public static void main(String[] args) {
        PrimeFactor primeFactor = new PrimeFactor();
        primeFactor.generate(100);

    }

    public void generate(int number) {
        if (number < 4) return;
        for (int i = 2; i <= Math.sqrt(number); i++) {
            if (number % i == 0) System.out.println(i);
        }
    }
}
